package com.bw.tap.base;

public class TitleRightBtn {

    public int id;
    public int name;
    public int icon;
    public int weight;

    public TitleRightBtn(int name, int icon, int weight) {
        this.name = name;
        this.icon = icon;
        this.weight = weight;
    }

    public static class Builder {

        private int name;
        private int icon;
        private int weight;

        public Builder() {
            this.name = 1;
            this.icon = 1;
            this.weight = 1;
        }

        public Builder addName(int name) {
            this.name = name;
            return this;
        }

        public Builder addIcon(int icon) {
            this.icon = icon;
            return this;
        }

        public Builder addWeight(int weight) {
            this.weight = weight;
            return this;
        }


        public TitleRightBtn build() {
            return new TitleRightBtn(name, icon, weight);
        }


    }


}
